#ifndef XMLCONTROLLER_H
#define XMLCONTROLLER_H

#include "Vector3.h"
#include <string>
#include <libXml/tree.h>

class XMLController
{
public:
    static int getInt( xmlNode* node, const char* attribute);
    static float getFloat( xmlNode* node, const char* attribute);
    static const char* getString( xmlNode* node, const char* attribute);
    static void parseVector2(const char* s, Vector2 &v2);
    static void parseVector3(const char* s, Vector3 &v3);
    static void parseVector4(const char* s, Vector4 &v4);
    static void parseVector4(const char* s, float v4[4]);
    static void parseVector5(const char* s, int v5[5]);
};

#endif
